#pragma once
#include "Common.h"

namespace common {
	class LineSegmentIntersection {
	public:
		LineSegmentIntersection() = default;
		bool CalcLineSegmentIntersection(const LineSegment& line_a, const LineSegment& line_b, Eigen::Vector3f& intersection, bool needToReProjtct = true);

	private:
		bool isPintInLineSegmentBoundingBox(const Eigen::Vector3f& point, const LineSegment& line);
	};
}